package com.designpatternspart2.behavioraldesignpatterns.chainofresponsibilitypattern;


/**
 *
 * @author Lance
 */
public abstract class PlanetHandler
{

    private PlanetHandler successor;

    public void setSuccessor(PlanetHandler successor)
    {
        this.successor = successor;
    }

    public PlanetHandler getSuccessor()
    {
        return successor;
    }

    public abstract void handleRequest(PlanetEnum request);
}
